let sum = require('./sum')

// 求平均数函数
function avar(...arr) {
    return sum(arr) / arr.length;
}

// console.log(avar(1, 2, 3, 4, 5));

function max(arr) {
    return Math.max(...arr)
}

// console.log(max([1, 2, 3, 3, 4, 5]));

let uniq = require('uniq');

console.log(uniq([1, 2, 3, 11, 1, 1, 2, 3, 1]));